import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '权限ID',
    dataIndex: 'authorityId',
    width: 200,
  },
  {
    title: '角色ID',
    dataIndex: 'roleId',
    width: 200,
  },
  {
    title: '过期时间:null表示长期',
    dataIndex: 'expireTime',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'createTime',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'updateTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '权限ID',
    field: 'authorityId',
    component: 'Input',
    required: true,
  },
  {
    label: '角色ID',
    field: 'roleId',
    component: 'Input',
    required: true,
  },
  {
    label: '过期时间:null表示长期',
    field: 'expireTime',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
];
